import API from '@/network/request'

export default {
  submitTail(data) {
    return API({
      url: '/video/addLongWord',
      method: 'POST',
      data
    })
  },
  queryTail(data) {
    return API({
      url: '/video/queryLongWord',
      method: 'POST',
      data
    })
  },
  banTailword(data) {
    return API({
      url: '/video/banLongWord',
      method: 'POST',
      data
    })
  },
  updateTailword(data) {
    return API({
      url: '/video/updateLongWord',
      method: 'POST',
      data
    })
  },
  uploadImg(data) {
    return API({
      url: '/video/addImg',
      method: 'POST',
      data
    })
  },
  queryImg(data) {
    return API({
      url: '/video/queryImg',
      method: 'POST',
      data
    })
  },
  delImg(data) {
    return API({
      url: '/video/delImg',
      method: 'POST',
      data
    })
  },
  addVideo(data) {
    return API({
      url: '/video/addVideo',
      method: 'POST',
      data
    })
  },

  queryVideo(data) {
    return API({
      url: '/video/queryVideo',
      method: 'POST',
      data
    })
  },
  updateVideo(data) {
    return API({
      url: '/video/updateVideo',
      method: 'POST',
      data
    })
  },
  queryLongWordList(data) {
    return API({
      url: '/video/queryLongWordList',
      method: 'POST',
      data
    })
  },
  queryImgList(data) {
    return API({
      url: '/video/queryImgList',
      method: 'POST',
      data
    })
  },
  queryVideoList(data) {
    return API({
      url: '/video/queryVideoList',
      method: 'POST',
      data
    })
  },
  delVideo(data) {
    return API({
      url: '/video/delVideo',
      method: 'POST',
      data
    })
  },
  queryUsable(data) {
    return API({
      url: '/video/queryUsable',
      method: 'POST',
      data
    })
  },
  addMaterial(data) {
    return API({
      url: '/video/addMaterial',
      method: 'POST',
      data
    })
  },
  queryMaterial(data) {
    return API({
      url: '/video/queryMaterial',
      method: 'POST',
      data
    })
  },
  queryMaterialById(data, id) {
    return API({
      url: `/video/queryMaterialById/${id}`,
      method: 'POST',
      data
    })
  },
  delMaterial(data) {
    return API({
      url: `/video/delMaterial`,
      method: 'POST',
      data
    })
  },

  queryCustomVideo(data) {
    return API({
      url: `/video/queryCustomVideo`,
      method: 'POST',
      data
    })
  }
}
